package com.dixiang.framework.http;

import java.util.Map;
import android.app.Activity;
import android.content.Context;

import com.dixiang.framework.common.QJNetUICallback;
import com.dixiang.framework.network.IResult;
import com.google.gson.reflect.TypeToken;

public interface IDataInterface {
	public abstract <T extends IResult> String getDataObject(Activity activity , String url , String params , TypeToken typeToken, QJNetUICallback callback);
	
	public abstract <T extends IResult> String getDataObject(Activity activity , String url , String params , TypeToken typeToken, QJNetUICallback callback ,String flg);
	
	public abstract <T extends IResult> String getCheckData(Context activity , String params , TypeToken typeToken, QJNetUICallback callback);
	
	public abstract <T extends IResult> String getLocalData(Context activity , String url , String params , TypeToken typeToken, QJNetUICallback callback);
	
	public abstract <T extends IResult> String postDataObject(Activity activity , String url , Map<String , Object> map , TypeToken typeToken, QJNetUICallback callback);
	
	public abstract <T extends IResult> String getBookingList(Activity activity , String url , String params , TypeToken typeToken, QJNetUICallback callback,String tokenParam);
	
	public abstract <T extends IResult> String getBookingDetial(Activity activity , String url , String params , TypeToken typeToken, QJNetUICallback callback,String tokenParam);
	
	public abstract <T extends IResult> String getDoctorList(Activity activity , String url , String params , TypeToken typeToken, QJNetUICallback callback);
}
